//
//  TESegmentedControl.h
//  SmartRoadShow
//
//  Created by Tracy E on 10-9-19.
//  Copyright 2010 simonwang142232@gmail.com. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol TESegmentedControlDelegate;

@interface TESegmentedControl : UIView {
	NSMutableArray *segments;
	NSInteger selectedSegment;
	
	id<TESegmentedControlDelegate>delegate;
}
@property(nonatomic, assign) id<TESegmentedControlDelegate>delegate;

- (void)setItems:(NSArray *)items;
- (void)setSelectedSegmentIndex:(NSInteger)index;

@end

@protocol TESegmentedControlDelegate
- (void)segmentedControl:(TESegmentedControl *)segmentedControl segmentDidChangeToIndex:(NSInteger)index;
@end
